package com.xy.breakfast.entity;

import java.util.Objects;

public class Admin implements java.io.Serializable {
    private int id;

    private String username;

    private String password;

    private Admin() {

    }
    public Admin(int id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Admin manage = (Admin) o;
        return id == manage.id && Objects.equals(username, manage.username) && Objects.equals(password, manage.password);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, username, password);
    }
}
